package cn.xiaobai.captcha.handler.dbtype;

import cn.xiaobai.captcha.config.CaptchaProperties;
import cn.xiaobai.captcha.handler.AbstractTypeHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * 抽象数据库类型缓存处理器
 *
 * @Author yangdaji
 * @Date 2024/4/18
 * @PackageName cn.xiaobai.captcha.handler
 * @ClassName AbstractDBTypeHandler
 */
@Slf4j
public abstract class AbstractDBAbstractTypeHandler extends AbstractTypeHandler {

    public AbstractDBAbstractTypeHandler() {
    }

    public AbstractDBAbstractTypeHandler(CaptchaProperties captchaProperties) {
        super(captchaProperties);
    }

    /**
     * 处理验证码缓存
     *
     * @param value 值
     * @return
     */
    public abstract Boolean captchaCache(String key, String value);

}
